package test1223;

public class Test04 {
    public static void main(String[] args) {

        // 打印3个变量中的最小值
        int a = 2;
        int b = 5;
        int c = 3;


        int min = 0;
        if (a < b) {
            min = a;
        } else if (b < a) {
            min = b;
        } else if (a < c) {
            min = a;
        } else if (c < a) {
            min = c;
        } else if (c < b) {
            min = c;
        } else if (b < c) {
            min = b;
        }

        System.out.println("最小值: " + min);

    }
}


